@extends('layouts.ajax_master')
@section('app_js')

@stop
@section('content')
    <table>
        <thead>
        <tr>
            <th width="240px">公司抬头</th>
            <th width="245px">上传时间</th>
            <th width="140px">下载次数</th>
            <th width="170px">操作</th>
            <th width="">状态</th>
        </tr>
        </thead>
        <tbody>
        @if(empty($list))
            <!-- 空的时候 -->
            <tr class="tr-no">
                <td colspan="5">暂无资源单，您可以<a href="javascript:;">去上传资源单</a></td>
            </tr>
            @else
                    <!-- 有资源单 -->
            @foreach($list as $v)
                <tr>
                    <td><div>{{$v->company}}</div></td>
                    <td><div>{{date('Y-m-d H:i:s',$v->created)}}</div></td>
                    <td><div>{{$v->down_num}}</div></td>
                    <td><div>
                            <a href="javascript:;">预览</a>
                            <a href="javascript:;" class="del" res_id="{{ $v->product_id }}">删除</a>
                        </div></td>
                    <td >@if($v->status == 1)<div class="examine-yes">已通过</div>  @elseif($v->status == 2)<div class="examine-in">审核中</div> @else <div class="examine-no">未通过</div> @endif</td>
                    </td>
                </tr>
            @endforeach
        @endif
        </tbody>
    </table>